#-------------------------------------------------
#
# Project created by QtCreator 2023-11-16T13:19:14
#
#-------------------------------------------------

QT       += core gui

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++11 console

msvc{
    QMAKE_CXXFLAGS += /source-charset:utf-8 /execution-charset:utf-8
}

TARGET = moving_charge_server
TEMPLATE = app

# The following define makes your compiler emit warnings if you use
# any feature of Qt which has been marked as deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS

DEFINES += GLOG_NO_ABBREVIATED_SEVERITIES
DEFINES += WIN32_LEAN_AND_MEAN

# You can also make your code fail to compile if you use deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

INCLUDEPATH += "$${PWD}\depends\glog\include"
INCLUDEPATH += "$${PWD}\depends\hv\include"
INCLUDEPATH += "$${PWD}\depends\rapidjson\include"
INCLUDEPATH += "$${PWD}\depends\leisai\include"

INCLUDEPATH += "$${PWD}\src\utils"
INCLUDEPATH += "$${PWD}\src\tcpServer"
INCLUDEPATH += "$${PWD}\src\servo"

LIBS += -L"$${PWD}\depends\glog\lib"         -lglog
LIBS += -L"$${PWD}\depends\hv\lib"           -lhv
LIBS += -L"$${PWD}\depends\leisai\lib"       -lLTSMC

SOURCES += \
        main.cpp \
        mainwindow.cpp \
    src/utils/logger.cpp \
    src/utils/utils.cpp \
    src/tcpServer/localTcpServer.cpp \
    src/tcpServer/movingChargeTcpServer.cpp \
    src/servo/servoControl.cpp \
    src/utils/pingger.cpp

HEADERS += \
        mainwindow.h \
    src/utils/logger.h \
    src/utils/utils.h \
    src/tcpServer/localTcpServer.h \
    src/tcpServer/movingChargeTcpServer.h \
    src/servo/servoControl.h \
    src/utils/pingger.h

FORMS += \
        mainwindow.ui

